﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

using bdtheque.data.enums;

namespace bdtheque.data.poco
{
    public class Comic
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public virtual Author Author { get; set; }
        // Enum workaround for EF 4.2 limitations
        public ComicGenre Genre
        {
            get
            {
                return (ComicGenre)GenreId;
            }
            set
            {
                GenreId = (int)value;
            }
        }
        public int GenreId { get; set; }
        public string Comment { get; set; }
        // Enum workaround for EF 4.2 limitations
        public Language Language
        {
            get
            {
                return (Language)LanguageId;
            }
            set
            {
                LanguageId = (int)value;
            }
        }
        public int LanguageId { get; set; }
        public virtual Publisher Publisher { get; set; }
        public DateTime? PublishDate { get; set; }
        public decimal Price { get; set; }
        public string ImageUri { get; set; }
        public virtual List<UserCollection> LinkedUserCollections { get; set; }
        public virtual List<ComicSeries> LinkedComicSeries { get; set; }
    }
}
